<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>数组添加方法</title>
		<script type="text/javascript">
			Array.prototype.clear=function(){
				return this.splice();
			}
			var fruits = ["Banana", "Orange", "Apple", "Mango"];
			fruits.splice(2, 0, "Lemon", "Kiwi");
			alert(fruits);
		</script>
	</head>
	<body>
	</body>
</html>
